﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Web.Services;
using BLL;
using NS.Utilities;
using NS.BLL.Systems;

public partial class Platform_OrderAllot : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            InitData();
            GridBind();
        }
    }
    private void InitData()
    {
        ListItem li = new ListItem("排队中", "1");
        ddlState.Items.Insert(0, li);
        li = new ListItem("已派单", "4");
        ddlState.Items.Insert(1, li);
    }
    public void GridBind()
    {
        FGridView1.SQLString = OrderService.GetAllOrder_SQL(ddlState.SelectedValue, Mobile.Text.Trim(), OrderNo.Text.Trim());
        FGridView1.PKey = "OrderID";
        FGridView1.OrderName = "PayDate";
        FGridView1.BindData();
        FGridView1.AddControl();
    }

    protected void btnSearch_Click(object sender, EventArgs e)
    {
        GridBind();
    }
}